byte[] operations in Java
Posted
by kape123
on Stack Overflow
See other posts from Stack Overflow
or by kape123
Published on 2010-03-30T15:34:47Z
Indexed on
2010/03/30
15:43 UTC
Read the original article
Hit count: 487
Let's say I have array of bytes:
byte[] arr = new byte[] { 0, 1, 2, 3, 4 };
Does platform has functions that I can use to play with this array - for example, how to invert it (get 4,3,2,1,0)? Or, how to invert part of it (2,1,0,3,4)? Get part of array (0,1,2,3)?
I know I can manually write functions but I am curious if I'm missing useful util functions in platform that I should know about (and couldn't find any useful guide using google).
Thanks!
© Stack Overflow or respective owner